#include <avr/io.h>

void xram (void) __attribute__((naked,section(".init3")));
void xram (void)
{
	MCUCR = (1<<SRE);
	XMCRA = 0;
	XMCRB = (1<<XMBK);
}

volatile uint8_t array[] = { 1, 2, 3, 4, 5, 6, 7, 8 };

int main(void)
{
	uint8_t cnt=0;
    while(1)
    {
        PORTA = array[cnt++];
    }
}